package com.wskeee.ec.styles
{
	import com.wskeee.ec.containers.LayoutConst;
	
	import flash.filters.DropShadowFilter;

	public class DefaultStyle
	{
		/*
		public static var embedFonts:Boolean = false;
		public static var fontName:String = "PF Ronda Seven";
		public static var fontSize:Number = 12;
		
		public static var BACK_GROUND_COLOR:uint = 0xCCCCCC;
		
		public static var TOOLTIP_FONTSIZE:int = 12;
		public static var TOOLTIP_BACKGROUP_COLOR:uint = 0xffffff;
		public static var TOOLTIP_BACKGROUP_APLAH:Number = 1;
		public static var TOOLTIP_BORDER_COLOR:uint = 0xcccccc;
		
		public static var INPUT_TEXT:uint = 0x333333;
		public static var TEXT_COLOR:uint = 0x666666;
		public static var TEXT_OVER_COLOR:uint = 0x666666;
		public static var TEXT_SELECTED_COLOR:uint = 0xffffff;
		
		public static var BUTTON_UP_COLOR:uint = 0xFFFFFF;
		public static var BUTTON_OVER_COLOR:uint = 0xdddddd;
		public static var BUTTON_DOWN_COLOR:uint = 0x666666;
		public static var BUTTON_FILL_ALPHA:Number = 0.8;
		public static var BORDER_COLOR:uint = 0x666666;
		
		public static var LIST_DEFAULT_COLOR:uint = 0xFFFFFF;
		public static var LIST_ALTERNATE_COLOR:uint = 0xF3F3F3;
		public static var LIST_SELECTED_COLOR:uint = 0xCCCCCC;
		public static var LIST_ROLLOVER_COLOR:uint = 0XDDDDDD;
		public static var LIST_DEFAULT_ALPHA:Number = 1;
		public static var LIST_ALTERNATE_ALPHA:uint = 1;
		public static var LIST_SELECTED_ALPHA:uint = 1;
		public static var LIST_ROLLOVER_ALPHA:uint = 1;
		
		public static var ALERT_TITLE_COLOR:uint = 0x000000;
		public static var ALERT_TEXT_COLOR:uint = 0x000000;
		public static var ALERT_TITLE_BACKGROUND_COLOR:uint = 0xcccccc;
		public static var ALERT_TITLE_BACKGROUND_ALHAP:Number = 0.9;
		public static var ALERT_BACKGROUND_COLOR:uint = 0xffffff;
		public static var ALERT_BACKGROUND_ALPHA:Number = 0.9;
		
		public static var DROP_SHADOW_COLOR:uint = 0x000000;
		*/
		/**
		 * 获取阴影滤镜 
		 * @param dist		长度
		 * @param knockout	阴影向内
		 * @return 
		 * 
		 */
		public static function getShadow(distance:Number = 2.0, 
										 inner:Boolean = false,
										 angle:Number = 45, 
										 alpha:Number = 1.0, 
										 blurX:Number = 2.0, 
										 blurY:Number = 2.0, 
										 strength:Number = 0.3, 
										 quality:int = 1, 
										 knockout:Boolean = false 
		):DropShadowFilter
		{
			return new DropShadowFilter(distance, angle, componentsDefautStyle["global"]["dropShadowColor"], alpha, blurX, blurY, strength, quality,inner,knockout);
		}
		//--------------------------------------------------------------------------
		//
		//  components defaut ide style
		//
		//--------------------------------------------------------------------------
		public static var componentsDefautStyle:Object = 
		{
			global:
			{
				embedFonts:false,
				fontFamily:"PF Ronda Seven",
				fontSize:12,
				fontColor:0x666666,
				borderColor:0x333333,
				dropShadowColor:0x000000,
				
				themeColor:0xFFFFFF,
				themeOverColor:0xDDDDDD,
				themeSelectedColor:0x666666,
				themeFillAlpha:0.8,
				
				horizontalGap:0,
				verticalGap:0,
				paddingTop:0,
				paddingBottom:0,
				paddingLeft:0,
				paddingRight:0
				
			},
			//-----------------------------------------------------------------
			//  Label
			//-----------------------------------------------------------------
			Label:
			{
				
			},
			//-----------------------------------------------------------------
			//  TextInput
			//-----------------------------------------------------------------
			TextInput:
			{
				fontColor:0x333333,
				borderColor:0xcccccc,
				backgroundColor:0xffffff
			},
			//-----------------------------------------------------------------
			//  Button
			//-----------------------------------------------------------------
			Button:
			{
				horizontalGap:5,			//icon与label间隔
				verticalAlign:LayoutConst.MIDDLE,
				horizontalAlign:LayoutConst.CENTER,
				textColor:0x666666,
				textOverColor:0x666666,
				textSelectedColor:0xffffff,
				upSkin:"Button_upSkin",
				overSkin:"Button_overSkin",
				downSkin:"Button_downSkin"
			},
			
			//-----------------------------------------------------------------
			//  RadioButton
			//-----------------------------------------------------------------
			RadioButton:
			{
				horizontalGap:5,
				upIcon:"RadioButton_upIcon",
				overIcon:"RadioButton_overIcon",
				downIcon:"RadioButton_downIcon",
				selectedIcon:"RadioButton_selectedUpIcon"
			},
			
			//-----------------------------------------------------------------
			//  CheckBox
			//-----------------------------------------------------------------
			CheckBox:
			{
				horizontalGap:5,
				upIcon:"CheckBox_upIcon",
				overIcon:"CheckBox_overIcon",
				downIcon:"CheckBox_downIcon",
				selectedIcon:"CheckBox_selectedUpIcon"
			},
			
			//-----------------------------------------------------------------
			//  HScrollBar
			//-----------------------------------------------------------------
			HScrollBar:
			{
				upArrowUpSkin:"HScrollArrowUp_upSkin",
				upArrowOverSkin:"HScrollArrowUp_overSkin",
				upArrowDownSkin:"HScrollArrowUp_downSkin",
				downArrowUpSkin:"HScrollArrowDown_upSkin",
				downArrowOverSkin:"HScrollArrowDown_overSkin",
				downArrowDownSkin:"HScrollArrowDown_downSkin",
				thumbUpSkin:"HScrollThumb_upSkin",
				thumbOverSkin:"HScrollThumb_overSkin",
				thumbDownSkin:"HScrollThumb_downSkin",
				thumbIcon:"HScrollThumb_icon",
				trackSkin:"HScrollTrack_skin"
			},
			
			//-----------------------------------------------------------------
			//  VScrollBar
			//-----------------------------------------------------------------
			VScrollBar:
			{
				upArrowUpSkin:"VScrollArrowUp_upSkin",
				upArrowOverSkin:"VScrollArrowUp_overSkin",
				upArrowDownSkin:"VScrollArrowUp_downSkin",
				downArrowUpSkin:"VScrollArrowDown_upSkin",
				downArrowOverSkin:"VScrollArrowDown_overSkin",
				downArrowDownSkin:"VScrollArrowDown_downSkin",
				thumbUpSkin:"VScrollThumb_upSkin",
				thumbOverSkin:"VScrollThumb_overSkin",
				thumbDownSkin:"VScrollThumb_downSkin",
				thumbIcon:"VScrollThumb_icon",
				trackSkin:"VScrollTrack_skin"
			},
			
			//-----------------------------------------------------------------
			//  List
			//-----------------------------------------------------------------
			List:
			{
				defaultColor:0xFFFFFF,
				rolloverColor:0XDDDDDD,
				selectedColor:0xCCCCCC,
				defaultAlpha:1,
				rolloverAlpha:1,
				selectedAlpha:1,
				fontSelectedColor:0xffffff
				
			},
			
			//-----------------------------------------------------------------
			//  ComboBox
			//-----------------------------------------------------------------
			ComboBox:
			{
				defaultColor:0xFFFFFF,
				rolloverColor:0XDDDDDD,
				selectedColor:0xCCCCCC,
				defaultAlpha:1,
				rolloverAlpha:1,
				selectedAlpha:1,
				fontSelectedColor:0xffffff,
				
				upSkin:"ComboBox_upSkin",
				overSkin:"ComboBox_overSkin",
				downSkin:"ComboBox_downSkin"
			},
			
			//-----------------------------------------------------------------
			//  ToolTip
			//-----------------------------------------------------------------
			ToolTip:
			{
				fontSize:12,
				backgroundColor:0xffffff,
				backgroundAlpha:1,
				borderColor:0xcccccc
			},
			//-----------------------------------------------------------------
			//  Alert
			//-----------------------------------------------------------------
			Alert:
			{
				titleColor:0x000000,
				textColor:0x000000,
				headBackgroundColor:0xcccccc,
				headBackgroundAlpha:1,
				backgroundColor:0xffffff,
				backgroundAlpha:1,
				
				backgroundImage:"AlertBackgroundImage_skin"
			}
		};
	}
}